package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * 客户 跟进列表
 * Created by xiachao
 */

public class GetCustomerFollowUpListRequest {

    String pageNum;
    String pageSize  = "10";
    String customerId;

    private GetCustomerFollowUpListRequest(Builder builder) {
        setPageNum(builder.pageNum);
        setPageSize(builder.pageSize);
        setCustomerId(builder.customerId);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getPageNum() {
        return pageNum;
    }

    public void setPageNum(String pageNum) {
        this.pageNum = pageNum;
    }

    public String getPageSize() {
        return pageSize;
    }

    public void setPageSize(String pageSize) {
        this.pageSize = pageSize;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public static final class Builder {
        private String pageNum;
        private String pageSize = "10";
        private String customerId;

        private Builder() {
        }

        public Builder pageNum(String pageNum) {
            this.pageNum = pageNum;
            return this;
        }

        public Builder pageSize(String pageSize) {
            this.pageSize = pageSize;
            return this;
        }

        public Builder customerId(String customerId) {
            this.customerId = customerId;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().getCustomerFollowupList(customerId,pageNum,pageSize);
        }
    }
}
